autohotkey が変数 A | 您所在的位置:网站首页 › ahk gui › autohotkey が変数 A |
autohotkey が変数 A_hour を読み取れない (autohotkey cant read variables A_hour) 問題の説明 autohotkey が変数 A_hour を読み取れない (autohotkey cant read variables A_hour) これは私の最初のスクリプトです。このスクリプトで gui から変数を取得したいのですが、変数の時間 1 と時間 2 の特定の時間に基づいて、特定の Windows アプリに CTRL+E を送信します コードのみが機能しますmytimer まで : (45 行目)、その後 if ステートメントが機能しない、メッセージボックスを表示しない、何が問題なの? 助けてくれてありがとう #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #SingleInstance,Force ;Gui Layout ;‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ hour:="00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|" minute:="00||01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|54|55|56|57|58|59|" SetTitleMatchMode, 2 SetTitleMatchMode, Fast ;Gui,Add,Text, x10, Timer control for toggle MT4 Auto Trading Gui,Add,Text, x10, Insert your MT4 account ID : Gui,Add,Edit, x+10 w100 vmtid Gui,Add,Text, x10, Choose what time to toggle Auto Trading [on/off] Gui,Add,Text, x10, Time 1 : Gui,Add,Text, x10, Hour Gui,Add,Text, x+50, Minutes Gui,Add,DropDownList, x10 w50 r10 vh1,% "16||"hour Gui,Add,DropDownList, x+10 w50 r10 vm1,% minute Gui,Add,Text, x10 y+10, Time 2 : Gui,Add,Text, x10, Hour Gui,Add,Text, x+50, Minutes Gui,Add,DropDownList, x10 w50 r10 vh2,% "22||"hour Gui,Add,DropDownList, x+10 w50 r10 vm2,% minute Gui,Add,Button, x10 y+20 w100 h50 gactive, Activate ! Gui, +AlwaysOnTop Gui, Show, x800 y100 w300 h300, MT4 Auto Trading Timer return active: Gui,Submit, NoHide ;MsgBox, Starting, Running Script... #Persistent SetTimer, mytimer, 60000 return mytimer: Gui, Submit, NoHide ;MsgBox, %h1%:%m1% %mtid% ; |
CopyRight 2018-2019 实验室设备网 版权所有 |